﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoMapper;
using DTO;

namespace DataAccess
{
    public static class MapperCreator
    {        
        public static void CreateMapper()
        {
            //Account
            Mapper.CreateMap<AccountDTO, ACCOUNT>();
            Mapper.CreateMap<ACCOUNT, AccountDTO>();
            //Account Type
            Mapper.CreateMap<AccountTypeDTO, ACCOUNT_TYPE>();
            Mapper.CreateMap<ACCOUNT_TYPE, AccountTypeDTO>();
            //Goal
            Mapper.CreateMap<GoalDTO, GOAL>();
            Mapper.CreateMap<GOAL, GoalDTO>();
            //Goal Type
            Mapper.CreateMap<GoalTypeDTO, GOAL_TYPE>();
            Mapper.CreateMap<GOAL_TYPE, GoalTypeDTO>();
            //Ground
            Mapper.CreateMap<GroundDTO, GROUND>();
            Mapper.CreateMap<GROUND, GroundDTO>();
            //Match
            Mapper.CreateMap<MatchDTO, MATCH>();
            Mapper.CreateMap<MATCH, MatchDTO>();
            //Parameter
            Mapper.CreateMap<ParameterDTO, PARAMETER>();
            Mapper.CreateMap<PARAMETER, ParameterDTO>();
            
            //Player Type
            Mapper.CreateMap<PlayerTypeDTO, PLAYER_TYPE>();
            Mapper.CreateMap<PLAYER_TYPE, PlayerTypeDTO>();
            //Position
            Mapper.CreateMap<PositionDTO, POSITION>();
            Mapper.CreateMap<POSITION, PositionDTO>();
            //Ranking Priority
            Mapper.CreateMap<RankingPriorityDTO, RANKING_PRIORITY>();
            Mapper.CreateMap<RANKING_PRIORITY, RankingPriorityDTO>();
            //Round
            Mapper.CreateMap<RoundDTO, ROUND>();
            Mapper.CreateMap<ROUND, RoundDTO>();
            //Team
            Mapper.CreateMap<TeamDTO, TEAM>();
            Mapper.CreateMap<TEAM, TeamDTO>();
            //Player
            Mapper.CreateMap<PlayerDTO, PLAYER>();
            Mapper.CreateMap<PLAYER, PlayerDTO>();
        }
    }
}
